<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use backend\helpers\ActionButton;

/* @var $this yii\web\View */
/* @var $model backend\models\LibraryBbk */

$this->title = 'Код ББК: ' . $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Библиотека', 'url' => ['library-book/index']];
$this->params['breadcrumbs'][] = ['label' => 'Коды ББК', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container library-bbk-view">

    <h1 class="main-title"><?= Html::encode($this->title) ?></h1>

    <p>
        <?= ActionButton::update($model->id, 'updateLibraryBbk') ?>
        <?= ActionButton::delete($model->id, 'Вы точно хотите удалить код ББК?', 'deleteLibraryBbk') ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'options' => ['class' => 'table table-striped detail-view'],
        'attributes' => [
            'id',
            'key',
            'title',
        ],
    ]) ?>

</div>
